#pragma once
#ifndef CWORLD_H_
#define CWORLD_H_

#include "CConsole.h"
#include "CLevel.h"

class CWorld{
private:
	CLevel* m_pCurrentLevel;
	CGUIWindow* m_pGUIManager;
	CConsole* m_pConsole;
	bool m_bKeyPressed, m_bExitApp;

public:
	CWorld();
	~CWorld();

	void ExitGame(){ m_bExitApp=true; }
	bool Exit(){ return m_bExitApp; }
	bool WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
	void Step(BYTE _keys[256], DIMOUSESTATE _mouse);
	void Draw();
	void CleanUp();
};

// global and accessible throughout the program
extern CWorld* g_pWorld;

#endif